<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title>ajax</title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  <script type="text/javascript" src="./ajax.js"></script>
  <script type="text/javascript">
	function ajax(){
		wym.ajax({
			url:"./ajax.php",
			data:"name=yongming&fdf=ddd",
			onSuccess:function(data){
				document.getElementById("box").innerHTML=data;
			},
			type:'post',
		});
	}
  </script>
 </head>

 <body>
	<button id="test" onclick="ajax();">向服务器获取内容</button>
	<div id="box"></div>
 </body>
</html>